PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


PlayThemeSound

Plays an asynchronous sound associated with the specified state change.

pascal OSStatus PlayThemeSound (
                     ThemeSoundKind kind);
kind
A value of type ThemeSoundKind . Pass a constant specifying the sound to play; see Theme Sound Constants for descriptions of possible values.
function result
A result code; see Result Codes .
DISCUSSION

The Appearance Manager automatically plays theme sounds for standard user interface elements. Your application can call the PlayThemeSound function to play a theme sound for a custom element. The sound plays asynchronously until complete, stopping automatically.

VERSION NOTES

Available with Appearance Manager 1.1 and later.


© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)